﻿using System;
using System.Collections.Generic;
using ENail.Domain.Core;
using Equation.Enterprise.Framework.Web.Model;

namespace ENail.Portal.Web.Models
{
    public class NailSalonViewModel : 
        BaseViewModel<Int16>, 
        IViewModelMapper<NailSalon, Int16>
    {
        public string Name { get; set; }
        public string Paypal { get; set; }
        public string Description { get; set; }

        //public IList<EmployeeViewModel> Employees { get; set; }
        //public IList<NailServiceViewModel> NailServices { get; set; }
        //public IList<Category> Categories { get; set; }
        //public IList<Registration> Registrations { get; set; }
        //public IList<UserViewModel> Users { get; set; }

        public NailSalonViewModel(string name, string paypal, string description) : this()
        {
            Name = name;
            Paypal = paypal;
            Description = description;
        }

        public NailSalonViewModel()
        {
            //Employees = new List<EmployeeViewModel>();
            //NailServices = new List<NailServiceViewModel>();
            //Categories = new List<Category>();
            //Registrations = new List<Registration>();
            //Users = new List<UserViewModel>();
        }

        public void MapFromDomainModel(NailSalon model)
        {
            this.Id = model.Id;
            this.Name = model.Name;
            this.Paypal = model.Paypal;
            this.Description = model.Description;
        }

        public void MapToDomainModel(NailSalon domainModel)
        {
            domainModel.Name = this.Name;
            domainModel.Paypal = this.Paypal;
            domainModel.Description = this.Description;
        }
    }
}